from django.urls import path
from . import views

urlpatterns = [
    path('students/', views.StudentsViewSet.as_view({"get": "list", "post": "create"})),
    path('students/<int:pk>/', views.StudentsViewSet.as_view({"get": "retrieve", "patch": "update"})),
    path('students/state/', views.StudentsDescViewSet.as_view({"get": "get_state_info"})),
    path('students/sex/', views.StudentsDescViewSet.as_view({"get": "get_sex_info"})),
]
